package com.foreknow.springboot.service.impl;

import com.foreknow.springboot.mapper.BusinessMapper;
import com.foreknow.springboot.po.Business;
import com.foreknow.springboot.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@SuppressWarnings({"all"})

/**
 * @author xiaoming
 * @version jdk1.8
 * @date 2022/8/12 14:40
 * @function:
 */
@Service
public class BusinessServiceImpl implements BusinessService {
    //依赖注入
    @Autowired
    private BusinessMapper businessMapper;

    @Override
    public List<Business> listBusinessOrderTypeId(Integer orderTypeId) {
        return businessMapper.listBusinessOrderTypeId(orderTypeId);
    }

    @Override
    public Business getBusinessById(Integer businessId) {
        return businessMapper.getBusinessById(businessId);
    }
}
